<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<jsp:include page="./common/common.jsp"></jsp:include>
<title></title>
</head>
<body>
<div data-role="page" id="foodInfo" data-title="foodInfo">
<script type="text/javascript" src="../js/index.js"></script>
  <div data-role="header" data-position="inline">
    <s:if test="#session.cur_table!=null">
    <a data-icon="check">加入</a>
    </s:if>
    <s:else>
    <a <%-- href="GetTableList.action" --%>
       href="#"
       name="tableList"
       data-role="button"
       data-icon="plus"
       <%--data-transition="slide"
       data-transition="pop"
        data-rel="dialog" --%>
    >绑定餐桌</a>
    </s:else>
    <h1></h1>
    <a data-icon="delete">返回</a>
  </div>
  <div data-role="content">
    <ul data-role="listview" data-inset="true" data-filter="false">
      <li>
        <img src="<s:property value="food.backup1"/>"/>
      </li>
      <li>名称:<s:property value="food.name"/></li>
      <li>类型:<s:property value="food.typeId"/></li>
      <li>价格:<s:property value="food.price"/></li>
      <li>状态:<s:property value="food.status"/></li>
    <s:if test="#session.cur_table!=null">
      <s:form action="/AddOrder.action" theme="simple">
        <input type="hidden" name="foodId"
          value="<s:property value="food.id"/>" />
        <input type="hidden" name="tableId"
          value="<s:property value="#session.cur_table.id"/>" />
      </s:form>
    </s:if>
    <s:else>
    </s:else>
    </ul>
    </div>
    <s:hidden name="fromPage"></s:hidden>
    <div data-role="footer" data-position="fixed">
        <h1></h1>
    </div>
</div>
</body>
</html>